<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><?php echo $event_data['name'] ?></title>

<link href="__PUBLIC__/plugins/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/themes/global/global.css" rel="stylesheet">
<link href="__PUBLIC__/themes/wechat/cupid/style.css" rel="stylesheet">
<script src="__PUBLIC__/plugins/jquery/2.1.3/jquery.min.js"></script>
<script src="__PUBLIC__/plugins/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/wechat/cupid/rule.js"></script>
<script>
$(function(){
  Rule.init(<?php echo json_encode( $config ) ?>);
  $('.container').css( 'minHeight' , $(window).height() );
});
function onBridgeReady(){
  WeixinJSBridge.call('hideOptionMenu');
}

if (typeof WeixinJSBridge == "undefined"){
  if( document.addEventListener ){
    document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
  }else if (document.attachEvent){
    document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
    document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
  }
}else{
  onBridgeReady();
}
</script>
</head>
<body>
<div class="body" style="display:none" >
  <img src="<?php echo U('Public/themes/wechat/cupid/images/share_icon.jpg' , '' , true , true ) ?>" >
</div>
<div class="container rule">
  <div class="rule-content">
    <?php echo $event_data['rule']?>
  </div>
  <div class="rule-btn-line">
    <div>
      <a class="block-btn block-btn-take" id="load_take_award_btn" style="margin-right:50px;" href="#">立即领取</a>
      <a class="block-btn block-btn-reg" href="http://mp.weixin.qq.com/s?__biz=MjM5NTQzNzM1Mw==&mid=214867265&idx=1&sn=7e67b1b9833e31603df68091642560e9#rd ">立即注册</a>
    </div>
    <div style="margin-top:10px;">
      <a class="block-btn block-btn-back" href="javascript:history.go(-1)">返回</a>
    </div>
  </div>
  
</div>

<div id="take_award_modal" class="my-modal my-modal-take_award">
  <div class="my-modal-content">
    <form id="take_award_form">
      <div>中奖用户提交姓名</div>
      <div><input class="form-control" name="truename" value="<?php echo $truename ?>"></div>
      <div>提交武汉移动手机号码</div>
      <div><input class="form-control" name="phone" value="<?php echo $phone ?>" ></div>
      <div>帮帮提示:奖品仅限"武汉移动"微信微会员</div>
      <div>尚未注册的筒子快去注册了！</div>
    </form>
  </div>
  <div class="modal-btn-line">
    <a href="#" class="block-btn block-btn-back" id="close_my_modal_btn">返回</a>
    <a href="#" class="block-btn block-btn-submit" id="take_award_btn">提交</a>
  </div>
</div>

</body>
</html>